package com.cwd.arm.inter.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yan on 21-11-20.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageVo<T> implements Serializable{

    private static final long serialVersionUID = 8545996863226528798L;

    @ApiModelProperty(value="数据")
    protected List<T> recordList;

    @ApiModelProperty(value="总数")
    protected Integer totalCount;

    @ApiModelProperty(value="总页数")
    private Integer totalPageNum;

    @ApiModelProperty(value="当前页")
    private Integer currentPage = 1;

    @ApiModelProperty(value="每也数量")
    private Integer pageSize = 10;

}
